import 'package:route/route.dart';
import 'package:flutter/material.dart';

import '../pages.dart';

class UIPage extends StatelessWidget {
  const UIPage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text("ui test"),
      ),
      body: ListView(
        children: [
          ListTile(
            leading: const Icon(Icons.title),
            title: const Text("nested scroll"),
            onTap: () => router.openFlutterPage(FlutterPages.testNestedScrollPage),
          ),
          ListTile(
            leading: const Icon(Icons.title),
            title: const Text("remove item of list anime"),
            onTap: () => router.openFlutterPage(FlutterPages.testRemoveListItemPage),
          ),
          ListTile(
            leading: const Icon(Icons.title),
            title: const Text("visibility detector"),
            onTap: () => router.openFlutterPage(FlutterPages.testVisibilityDetector),
          ),
          ListTile(
            leading: const Icon(Icons.title),
            title: const Text("bottom sheet"),
            onTap: () => router.openFlutterPage(FlutterPages.testBottomSheet),
          ),
          ListTile(
            leading: const Icon(Icons.title),
            title: const Text("test swiper"),
            onTap: () => router.openFlutterPage(FlutterPages.testSwiperPage),
          ),
          ListTile(
            leading: const Icon(Icons.title),
            title: const Text("test inverted clipper"),
            onTap: () => router.openFlutterPage(FlutterPages.testInvertedClipper),
          ),
        ],
      ),
    );
  }
}
